import java.util.LinkedList;
import java.util.List;

/**
 * zz: wzh
 * time 2022 09 20 21 51
 **/
public class MyQueue {
    List<Integer> list=new LinkedList();
    public MyQueue() {

    }

    public void push(int x) {
        list.add(x);
    }

    public int pop() {
        int x = list.get(0);
        list.remove(0);
        return x;
    }

    public int peek() {
        return list.get(0);
    }

    public boolean empty() {
        return list.size()==0?true:false;
    }
}
